package com.aaa.outbound.mapper;

import com.aaa.entity.outbound.Review;
import com.aaa.entity.outbound.ReviewDetail;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author wjf
 * @since 2020-11-27
 */
@Mapper
@Component
public interface ReviewMapper extends BaseMapper<Review> {
    @Select("select * from o_review_detail where pid=#{pid}")
    List<ReviewDetail> selectReviewDetailByPid(Long pid);
}
